// src/plugins/global-components.js

import SvgIcon from '@/components/SvgIcon.vue'
import PdfViewer from '@/components/XShowPdfViewer.vue'

const components = {
  SvgIcon,
  PdfViewer,
}

export default {
  install(Vue) {
    // 批量注册组件
    Object.keys(components).forEach(key => {
      Vue.component(key, components[key])
    })
  }
}